import request from '@/utils/request'
import { Result, DeepRequired } from '../../interface'

/**
 * 查询标签
 * /tag/getByname/{name}
 */
export function getTagGetBynameByName(params: GetTagGetBynameByNameParams) {
  return request.get<DeepRequired<Result>>(`/tag/getByname/${params.name}`)
}

interface GetTagGetBynameByNameParams {
  name: string
}
